package h1.sismetro.dao;



import h1.sismetro.classesbasicas.Usuario;
import h1.sismetro.exceptions.AcessoAoBancoException;
import h1.sismetro.exceptions.ConexaoComBancoException;

import java.util.List;


public interface IRepositorioUsuario {
	public void inserir(Usuario novoUsuario)throws AcessoAoBancoException, ConexaoComBancoException ;
	public boolean existe(int login) throws AcessoAoBancoException, ConexaoComBancoException;
	public boolean existe(String matricula) throws AcessoAoBancoException, ConexaoComBancoException;
	public void atualizar(Usuario novoUsuario) throws AcessoAoBancoException, ConexaoComBancoException;
	public void remover(int login)throws AcessoAoBancoException, ConexaoComBancoException;
    public Usuario localizar(int login) throws AcessoAoBancoException, ConexaoComBancoException;
    public Usuario buscarPorLogon(int login, String senha) throws AcessoAoBancoException, ConexaoComBancoException;
    public List<Usuario> listar() throws AcessoAoBancoException, ConexaoComBancoException;

}
